/*
 * \brief  ROM session interface
 * \author Norman Feske
 * \date   2006-07-06
 *
 * A ROM session corresponds to an open file. The file
 * name is specified as an argument on session creation.
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _INCLUDE__ROM_SESSION__ROM_SESSION_H_
#define _INCLUDE__ROM_SESSION__ROM_SESSION_H_

#include <dataspace/capability.h>

namespace Genode {

	typedef Typed_capability<Dataspace, Dataspace_capability> Rom_dataspace_capability;

	class Rom_session
	{
		protected:

			enum Opcode { DATASPACE };

		public:

			static const char *service_name() { return "ROM"; }

			virtual ~Rom_session() { }

			/**
			 * Request dataspace containing the ROM session data
			 *
			 * \return  capability to ROM dataspace
			 *
			 * The capability may be invalid.
			 */
			virtual Rom_dataspace_capability dataspace() = 0;
	};
}

#endif /* _INCLUDE__ROM_SESSION__ROM_SESSION_H_ */
